﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Security;

namespace LiteBlog.XmlProviders
{
    public class CustomMembershipUser : MembershipUser
    {
        public string DisplayName { get; set; }
        public bool Enabled { get; set; }
        public bool IsPrimary { get; set; }
        public string Url { get; set; }

        public CustomMembershipUser() : base() { }

        public CustomMembershipUser(string providerName, string name, object providerUserKey, string email, string passwordQuestion, string comment, bool isApproved, bool isLockedOut, DateTime creationDate, DateTime lastLoginDate, DateTime lastActivityDate, DateTime lastPasswordChangedDate, DateTime lastLockoutDate)
            : base(providerName, name, providerUserKey, email, passwordQuestion, comment, isApproved, isLockedOut, creationDate, lastLoginDate, lastActivityDate, lastPasswordChangedDate, lastLockoutDate) { }

        public CustomMembershipUser(string providerName, string name, object providerUserKey, string email, string displayName, bool isLockedOut, DateTime creationDate, DateTime lastLoginDate, DateTime lastActivityDate, DateTime lastPasswordChangedDate, DateTime lastLockoutDate)
            : base(providerName, name, providerUserKey, email, string.Empty, string.Empty, true, isLockedOut, creationDate, lastLoginDate, lastActivityDate, lastPasswordChangedDate, lastLockoutDate)
        {
            DisplayName = displayName;
        }

        public CustomMembershipUser(MembershipUser user, string displayName)
            : base(user.ProviderName, user.UserName, user.ProviderUserKey, user.Email, user.PasswordQuestion, user.Comment, user.IsApproved, user.IsLockedOut, user.CreationDate, user.LastLoginDate, user.LastActivityDate, user.LastPasswordChangedDate, user.LastLockoutDate) 
        {
            DisplayName = displayName;
        }

    }
}
